libkovan
1
The kovan standard library
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
types.hpp
Go to the documentation of this file.
1
#ifndef _TYPES_HPP_
2
#define _TYPES_HPP_
3
4
template
<
typename
T>
5
struct
Vec3
6
{
7
Vec3
();
8
Vec3
(
const
T &
x
,
const
T &
y
,
const
T &
z
);
9
10
T
x
;
11
T
y
;
12
T
z
;
13
};
14
15
template
<
typename
T>
16
Vec3<T>::Vec3
()
17
: x(0.0f),
18
y(0.0f),
19
z(0.0f)
20
{
21
}
22
23
24
template
<
typename
T>
25
Vec3<T>::Vec3
(
const
T &x,
const
T &y,
const
T &z)
26
: x(x),
27
y(y),
28
z(z)
29
{
30
}
31
32
typedef
Vec3<float>
Vec3f
;
33
typedef
Vec3<double>
Vec3lf
;
34
typedef
Vec3<int>
Vec3d
;
35
typedef
Vec3<unsigned>
Vec3u
;
36
37
#endif
include
kovan
types.hpp
Generated on Mon Aug 19 2013 00:33:00 for libkovan by
1.8.4